Skip to content

fix: default display/unverified reads to include_proof:false#5

Merged
pauldelucia merged 1 commit into
masterfrom
fix/proof-off-default-reads
Jul 7, 2026
Merged

fix: default display/unverified reads to include_proof:false#5
pauldelucia merged 1 commit into
masterfrom
fix/proof-off-default-reads

Conversation

@pauldelucia

Copy link
Copy Markdown
Contributor

What & why

Plain display reads omitted include_proof, and the server defaults an absent flag to true — so every display read paid per-entity Merkle proving plus the proof-consistency retry loop (measured ~22× bytes, 2–4× latency on an idle indexer) and then discarded a proof it never verified. This sends include_proof: false explicitly on the SQL and GraphQL display paths.

Verification APIs are untouched and still fail closed: data.query() still forces True and verifies against the consensus root, query_historical_verified() still forces proof, and the eth_state verifiable-rpc reads are unchanged.

This repo

  • IndexingOperations.graphql_query() gains an include_proof: bool = False param and sets it on the request body (previously never sent the field).
  • IndexingOperations.sql_query() default flips TrueFalse. Callers opt back in with include_proof=True.

Verification

pip install -e .[dev] + pytest → 288 passed / 13 pre-existing integration skips, including 4 new wire tests asserting include_proof=false reaches the body by default. mypy src introduces zero new errors (150-error baseline is identical with and without this diff — unrelated repo tech debt). No verification API changed.

Closes the "SDK display reads: pass include_proof: false" task.

🤖 Generated with Claude Code

graphql_query() gains an include_proof=False param and sends it on the body (previously never sent, so the server defaulted to true); sql_query()'s default flips True->False. Verified data.query()/get(), query_historical_verified(), and eth-state verifiable-rpc are unchanged and still fail closed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pauldelucia pauldelucia merged commit 8fc4237 into master Jul 7, 2026
1 check passed
@pauldelucia pauldelucia deleted the fix/proof-off-default-reads branch July 7, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant